function RectFlip(rect){
	var w=rect.width;
	var h=rect.height;
	var x=rect.x;
	var y=rect.y;

	var x1=x+rect.width;

	x=-x;
	x1=-x1;
	
	var newx=x1>x?x:x1;

	return cc.rect(newx,y,w,h);
}

function FlipRects(rects){
	var newrc=new Array();
	for(var i=0;i<rects.length;++i)
	{
		newrc.push(RectFlip(rects[i]));
	}
	return newrc;
}